<?php echo $this->headScript()->appendFile($this->js('jquery-validate/jquery.validate.js'))
->captureStart()?>
   $(document).ready(function(){
    $("#loginform").validate();
    $("#username").focus();
  });
 <?php $this->headScript()->captureEnd()?>

 <?php if ($this->message):?>
<ul class="errorMessage">
<li><?php echo $this->translate($this->message)?></li>
</ul>

<?php endif; ?>
<fieldset style="width:600px;margin:10px auto">
<legend><?php echo $this->translate('Login check')?></legend>
 <form id="loginform" action="<?php echo $this->BaseUrl()?>/login"  method="post" class="zend_form">
 <?php echo $this->form->username?>
<?php echo $this->form->password?>
<?php echo $this->form->captcha?>
<?php echo $this->form->login?>
<?php echo $this->form->csrf?>
 <?php if ($this->request_url):?><input type="hidden" name="request_url" value="<?php echo $this->request_url?>"><?php endif;?>
 </form>

</fieldset>
